package com.bgs.eat.shop.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @ClassName ShopEntity
 * @Description TODO
 * @Author lzy
 * @Date 2022/10/9 14:54
 **/
@Data
@Table(name = "shop")
public class ShopEntity {

    @Id
    private Integer id;

    private String shopName;    // 店铺名称

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime; // 创建时间

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime; // 修改时间

    private Integer delFlag;    // 是否删除 0未删除 1已删除

    private String lng;

    private String lat;

    private Integer provinceId; // 省id

    private Integer cityId; // 市Id

    private Integer countyId;   // 县id

    private String phone;   // 联系电话

    private String takeOutPhone;    // 外卖电话

    private String contactName; // 联系人姓名

    private Integer shopLogo;   // 门店logo

    private Integer facadeImageId;    // 门面图片

    private Integer lobbyImage; // 大堂图片

    private String address; // 门店地址

    private Integer eatIn;  // 堂食 0有堂食 1无堂食

    private String eatInTypeIds;  // 堂食类型

    private Integer operationTypeId; // 营业类目

    private Integer operationStatus; // 营业状态 0未营业 1营业中

    private Integer amount; // 销售总数

    private String score; // 评分

    private BigDecimal minPrice; // 起送价

    private Integer userProtalId; // 用户Id

    private Integer auditId; // 审核状态

    private String closeShopReason; // 关闭店铺理由

    private Integer backgroundImage;    // 背景图片

}
